package cn.xinfei.xdecision.common.utils.util;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;

public class JsonUtil {

    public static String toJson(Object data) {
        String s = null;
        s = JsonUtils.toJsonString(data);
//            s = new ObjectMapper().writeValueAsString(data);
        return s;

    }
}
